package com.cssl.controller;

import com.cssl.domain.dto.DtsCollectDto;
import com.cssl.openFeign.DtsCollectClient;
import com.cssl.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/usercollect")
public class DtsCollectController {
    @Autowired
    private DtsCollectClient dtsCollectClient;
    @PostMapping("/listCollect")
    public Result getCollectList(@RequestBody DtsCollectDto dtsCollectDto) {
        return dtsCollectClient.getCollectList(dtsCollectDto);
    }
}
